<template>
  <div id="serve">
       <div>
        <p>玩美服务</p>
      </div>
      <ul>
        <li v-for="(v,i) in arr" :key="i"><router-link to="">
          <img :src="v.img" alt="">
          <p>{{v.text}}</p>
          </router-link></li>
      </ul>
  </div>
</template>

<script>
export default {
data() {
    return {
        arr:[
             {
        img:"my/s/1.png",
        text:"预约中心"
      },
       {
        img:"my/s/2.png",
        text:"申领中心"
      },
       {
        img:"my/s/3.png",
        text:"兑换记录"
      },
       {
        img:"my/s/4.png",
        text:"在线客服"
      },
      {
        img:"my/s/5.png",
        text:"帮助中心"
      },
        ]
    }
},
}
</script>

<style scoped>
#serve{
   width: 95%;
  height: 2.1rem;
  margin: auto;
  margin-top: 0.2rem;
  border: 1px solid gainsboro;
  border-radius: 0.1rem;
}
#serve ul li{
float: left;
width: 25%;
text-align: center;
margin-top: 0.15rem;
}
#serve div{
  width: 90%;
  height: 0.4rem;
  line-height: 0.4rem;
  margin: auto;
  border-bottom: 1px solid gainsboro;
}
#serve div p{
  display: inline-block;
  font-size: 0.16rem;
}
#serve ul img{
  width: 0.4rem;
  height: 0.4rem;
}
</style>